package org.lg.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Admin implements Serializable {
    private String adno;

    private String adpwd;

    private String adname;

    private Integer adstate;

    private static final long serialVersionUID = 1L;

    public String getAdno() {
        return adno;
    }

    public void setAdno(String adno) {
        this.adno = adno;
    }

    public String getAdpwd() {
        return adpwd;
    }

    public void setAdpwd(String adpwd) {
        this.adpwd = adpwd;
    }

    public String getAdname() {
        return adname;
    }

    public void setAdname(String adname) {
        this.adname = adname;
    }

    public Integer getAdstate() {
        return adstate;
    }

    public void setAdstate(Integer adstate) {
        this.adstate = adstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Admin other = (Admin) that;
        return (this.getAdno() == null ? other.getAdno() == null : this.getAdno().equals(other.getAdno()))
            && (this.getAdpwd() == null ? other.getAdpwd() == null : this.getAdpwd().equals(other.getAdpwd()))
            && (this.getAdname() == null ? other.getAdname() == null : this.getAdname().equals(other.getAdname()))
            && (this.getAdstate() == null ? other.getAdstate() == null : this.getAdstate().equals(other.getAdstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAdno() == null) ? 0 : getAdno().hashCode());
        result = prime * result + ((getAdpwd() == null) ? 0 : getAdpwd().hashCode());
        result = prime * result + ((getAdname() == null) ? 0 : getAdname().hashCode());
        result = prime * result + ((getAdstate() == null) ? 0 : getAdstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", adno=").append(adno);
        sb.append(", adpwd=").append(adpwd);
        sb.append(", adname=").append(adname);
        sb.append(", adstate=").append(adstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}